import Cookie from "js-cookie";

const key: string = "token";

export const getToken = (): string | undefined => {
  return Cookie.get(key);
};

export const setToken = (value: string): void => {
  Cookie.set(key, value);
};

export const removeToken = (): void => {
  Cookie.remove(key);
};
